package com.bluegalaxy.nhb.snservice.service.ck.impl;

import com.bluegalaxy.nhb.snservice.dao.EventAnalysisMapper;
import com.bluegalaxy.nhb.snservice.dao.UsersMapper;
import com.bluegalaxy.nhb.snservice.domain.vo.api.ck.EventItemParamVO;
import com.bluegalaxy.nhb.snservice.domain.vo.api.ck.EventsVO;
import com.bluegalaxy.nhb.snservice.domain.vo.api.ck.UserTrackVO;
import com.bluegalaxy.nhb.snservice.service.ck.EventService;
import com.bluegalaxy.nhb.snservice.service.ck.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("EventService")
public class EventServiceImpl implements EventService {
    @Autowired
    private EventAnalysisMapper eventAnalysisMapper;

    @Override
    public List<UserTrackVO> selectTrackByDistinctId(String distinctId) {
        return eventAnalysisMapper.selectTrackByDistinctId(distinctId);
    }

    @Override
    public List<UserTrackVO> selectTrackByLoginId(String loginId) {
        return eventAnalysisMapper.selectTrackByLoginId(loginId);
    }

    @Override
    public List<UserTrackVO> selectTrack(EventsVO param) {
        return eventAnalysisMapper.selectTrack(param);
    }

    @Override
    public List<Map<String, Object>> selectEventItemList(EventItemParamVO param) {
        return eventAnalysisMapper.selectEventItemList(param);
    }
}
